package com.xdjmall.dao;

import java.sql.SQLException;
import java.util.List;

import com.xdjmall.util.QueryCondition;

public interface BaseDao<T> {
	Integer insert(T t) throws SQLException;
	Integer delete(Integer id) throws SQLException;
	Integer update(T t) throws SQLException;
	T selectById(Integer id) throws SQLException;
	// 查询总行数
	Integer selectCount() throws SQLException;
	// 分页                         
	List<T> selectByPage(QueryCondition condition) throws SQLException;
}
